package com.itheima.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheim.client.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Author longbosheng
 * @Date 2022/6/19 19:39
 * @PackageName:com.itheima.mapper
 * @ClassName: ShoppingCartMapper
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
    /**
     * 添加数量
     * @param shoppingCart
     * @return
     */
    int addCount(ShoppingCart shoppingCart);

    /**
     * 查询数量
     * @param shoppingCart
     * @return
     */

    int selectNumber(ShoppingCart shoppingCart);

    /**
     * 减少数量
     * @param shoppingCart
     * @return
     */
    int dropCount(ShoppingCart shoppingCart);
}
